package top.dark.ware.dao;

import org.apache.ibatis.annotations.Param;
import top.dark.ware.entity.WareSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * 商品库存
 *
 * @author lijiao
 * @email DarknessShadow11@outlook.com
 * @date 2021-02-01 17:33:57
 */
@Mapper
public interface WareSkuDao extends BaseMapper<WareSkuEntity> {

    void updateWareSku(@Param("skuId") Long skuId, @Param("wareId") Long wareId, @Param("skuNum") Integer skuNum);

    Long skuHasStock(@Param("skuId") Long skuId);
}
